import { createBrowserRouter } from 'react-router-dom'
import App from '../App'
const routers = createBrowserRouter([
    {
        path: '/',
        element: <App />,
        children: [
            {
                path: '/home',
                async lazy() {
                    const { default: Home } = await import('../pages/home/Index')
                    return {
                        element: <Home />
                    }
                }
            },
            {
                path: '/message',
                async lazy() {
                    const { default: Message } = await import('../pages/message/Index')
                    return {
                        element: <Message />
                    }
                }
            },
            {
                path: '/my',
                async lazy() {
                    const { default: My } = await import('../pages/my/Index')
                    return {
                        element: <My />
                    }
                }
            },
            {
                path: '/todo',
                async lazy() {
                    const { default: Todo } = await import('../pages/todo/Index')
                    return {
                        element: <Todo />
                    }
                }
            },
            {
                path: '/store',
                async lazy() {
                    const { default: Store } = await import('../pages/store/Index')
                    return {
                        element: <Store />
                    }
                },

            },
        ]
    },
    {
        path: '/login',
        async lazy() {
            const { default: Login } = await import('../pages/login/Index')
            return {
                element: <Login />
            }
        }
    },
    {
        path: '/about_us',
        async lazy() {
            const { default: About_us } = await import('../pages/about_us/Index')
            return {
                element: <About_us />
            }
        }
    },
    {
        path: '/address',
        async lazy() {
            const { default: Address } = await import('../pages/address/Index')
            return {
                element: <Address />
            }
        }
    },
    {
        path: '/card',
        async lazy() {
            const { default: Card } = await import('../pages/card/Index')
            return {
                element: <Card />
            }
        }
    },
    {
        path: '/public_Notice',
        async lazy() {
            const { default: Public_Notice } = await import('../pages/Public_Notice/Index')
            return {
                element: <Public_Notice />
            }
        }
    },
    {
        path: '/privacy_Policy',
        async lazy() {
            const { default: Privacy_Policy } = await import('../pages/privacy_Policy/Index')
            return {
                element: <Privacy_Policy />
            }
        }
    },
    {
        path: '/message_detail',
        async lazy() {
            const { default: MessageDetail } = await import('../pages/messageDetail/Index')
            return {
                element: <MessageDetail />
            }
        }
    },
    {
        path: '/Agreement',
        async lazy() {
            const { default: Agreement } = await import('../pages/Agreement/Index')
            return {
                element: <Agreement />
            }
        }
    },
    {
        path: '/s_xq1/:id',
        async lazy() {
            const { default: S_xq1 } = await import('../pages/s_xq1/Index')
            return {
                element: <S_xq1 />
            }
        }
    },
    {
        path: '/set',
        async lazy() {
            const { default: Set } = await import('../pages/set/Index')
            return {
                element: <Set />
            }
        }
    },
    {
        path: '/shop',
        async lazy() {
            const { default: Shop } = await import('../pages/shop/Index')
            return {
                element: <Shop />
            }
        }
    },
    {
        path: '/messageDetail',
        async lazy() {
            const { default: MessageDetail } = await import('../pages/messageDetail/Index')
            return {
                element: <MessageDetail />
            }
        }
    },
    {
        path: '/xq_todo/:id',
        async lazy() {
            const { default: Xq_todo } = await import('../pages/xq_todo/Index')
            return {
                element: <Xq_todo />
            }
        }
    },
    {
        path: '/doctor_xq/:id',
        async lazy() {
            const { default: Doctor_xq } = await import('../pages/doctor_xq/Index')
            return {
                element: <Doctor_xq />
            }
        }
    },
    {
        path: '/yaopin_xq',
        async lazy() {
            const { default: Yaopin_xq } = await import('../conpoment/yaopin_xq/index')
            return {
                element: <Yaopin_xq />
            }
        }
    },
    {
        path: '/doctor_list',
        async lazy() {
            const { default: DoctorList } = await import('../pages/doctor_list/Index')
            return {
                element: <DoctorList />
            }
        }
    },
    {
        path: '/home_ss',
        async lazy() {
            const { default: Home_ss } = await import('../pages/home_ss/Index')
            return {
                element: <Home_ss />
            }
        }
    },
    {
        path: '/Wenz',
        async lazy() {
            const { default: Wenz } = await import('../pages/wenz/Index')
            return {
                element: <Wenz />
            }
        }
    },
    {
        path: '/dingwei',
        async lazy() {
            const { default: Dingwei } = await import('../pages/dingwei/Index')
            return {
                element: <Dingwei />
            }
        }
    },
    {
        path: '/create',
        async lazy() {
            const { default: Create } = await import('../pages/create/Index')
            return {
                element: <Create />
            }
        }
    },
    {
        path: '/price/:price',
        async lazy() {
            const { default: Price } = await import('../pages/price/Index')
            return {
                element: <Price />
            }
        }
    },
    {
        path: '/smart_hospital',
        async lazy() {
            const { default: SmartHospital } = await import('../pages/smart_hospital/Index')
            return {
                element: <SmartHospital />
            }
        }
    },
    {
        path: '/appointment',
        async lazy() {
            const { default: Appointment } = await import('../pages/appointment/Index')
            return {
                element: <Appointment />
            }
        }
    },
    {
        path: '/appointment_from',
        async lazy() {
            const { default: Appointment_from } = await import('../pages/appointment_from/Index')
            return {
                element: <Appointment_from />
            }
        }
    },
    {
        path: '/appointment_xq/:id',
        async lazy() {
            const { default: Appointment_xq } = await import('../pages/appointment_xq/Index')
            return {
                element: <Appointment_xq />
            }
        }
    },

    {
        path: '/payment',
        async lazy() {
            const { default: Payment } = await import('../pages/payment/Index')
            return {
                element: <Payment />
            }
        }
    },
    {
        path: '/pingz',
        async lazy() {
            const { default: Pingz } = await import('../pages/pingz/Index')
            return {
                element: <Pingz />
            }
        }
    },
    {
        path: '/pay',
        async lazy() {
            const { default: Pay } = await import('../pages/pay/Index')
            return {
                element: <Pay />
            }
        }
    },
    {
        path: '/list',
        async lazy() {
            const { default: List } = await import('../pages/list/Index')
            return {
                element: <List />
            }
        }
    },
    {
        path: '/waiting',
        async lazy() {
            const { default: Waiting } = await import('../pages/waiting/Index')
            return {
                element: <Waiting />
            }
        }
    },
    {
        path: '/waiting_xq/:id',
        async lazy() {
            const { default: Waiting_xq } = await import('../pages/waiting_xq/Index')
            return {
                element: <Waiting_xq />
            }
        }
    },
    {
        path: '/appointment_xq/:campusId',
        async lazy() {
            const { default: AppointmentXq } = await import('../pages/appointment_xq/Index')
            return {
                element: <AppointmentXq />
            }
        }
    },
    // outpatient-guide
    {
        path: '/outpatient_guide',
        async lazy() {
            const { default: OutpatientGuide } = await import('../pages/outpatient_guide/Index')
            return {
                element: <OutpatientGuide />
            }
        }
    },
    {
        path: '/outpatient_guide_xq',
        async lazy() {
            const { default: OutpatientGuideXq } = await import('../pages/outpatient_guide_xq/Index')
            return {
                element: <OutpatientGuideXq />
            }
        }
    },
    {
        path: '/self-service-order',
        async lazy() {
            const { default: SelfServiceOrder } = await import('../pages/self_service_order/Index')
            return {
                element: <SelfServiceOrder />
            }
        }
    },
    {
        path: '/self_xq',
        async lazy() {
            const { default: SelfXq } = await import('../pages/self_xq/Index')
            return {
                element: <SelfXq />
            }
        }
    },
     {
        path: '/self_jl',
        async lazy() {
            const { default: SelfJl } = await import('../pages/self_jl/Index')
            return {
                element: <SelfJl />
            }
        }
    },
     {
        path: '/self_order',
        async lazy() {
            const { default: SelfOrder } = await import('../pages/self_order/Index')
            return {
                element: <SelfOrder />
            }
        }
    },
    {
        path: '/medical-tech-appointment',
        async lazy() {
            const { default: MedicalTechAppointment } = await import('../pages/medical_tech_appointment/Index')
            return {
                element: <MedicalTechAppointment />
            }
        }
    },
    {
        path: '/medical-tech-confirm',
        async lazy() {
            const { default: MedicalTechConfirm } = await import('../pages/medical_tech_confirm/Index')
            return {
                element: <MedicalTechConfirm />
            }
        }
    },
    {
        path: '/medical-tech-select',
        async lazy() {
            const { default: MedicalTechSelect } = await import('../pages/medical_tech_select/Index')
            return {
                element: <MedicalTechSelect />
            }
        }
    },
    {
        path: '/medical-tech-detail',
        async lazy() {
            const { default: MedicalTechDetail } = await import('../pages/medical_tech_detail/Index')
            return {
                element: <MedicalTechDetail />
            }
        }
    },
    {
        path: '/self-service-number',
        async lazy() {
            const { default: SelfServiceNumber } = await import('../pages/self_service_number/Index')
            return {
                element: <SelfServiceNumber />
            }
        }
    },
    {
        path: '/self-service-department',
        async lazy() {
            const { default: SelfServiceDepartment } = await import('../pages/self_service_department/Index')
            return {
                element: <SelfServiceDepartment />
            }
        }
    },
        {
        path: '/self-service-num',
        async lazy() {
            const { default: SelfServiceNum } = await import('../pages/self_service_num/Index')
            return {
                element: <SelfServiceNum />
            }
        }
    },
    {
        path: '/outpatient-guide-sheet',
        async lazy() {
            const { default: OutpatientGuideSheet } = await import('../pages/outpatient_guide_sheet/Index')
            return {
                element: <OutpatientGuideSheet />
            }
        }
    },
    {
        path: '/invoice',
        async lazy() {
            const { default: Invoice } = await import('../pages/invoice/Index')
            return {
                element: <Invoice />
            }
        }
    },
    {
        path: '/card_detail/:id',
        async lazy() {
            const { default: CardDetail } = await import('../pages/card_detail/Index')
            return {
                element: <CardDetail />
            }
        }
    },
    {
        path: '/family_management',
        async lazy() {
            const { default: FamilyManagement } = await import('../pages/family_management/Index')
            return {
                element: <FamilyManagement />
            }
        }
    },
    {
        path: '/add_patient',
        async lazy() {
            const { default: AddPatient } = await import('../pages/add_patient/Index')
            return {
                element: <AddPatient />
            }
        }
    },
    {
        path: '/identity_verification',
        async lazy() {
            const { default: IdentityVerification } = await import('../pages/identity_verification/Index')
            return {
                element: <IdentityVerification />
            }
        }
    },
    {
        path: '/account_management',
        async lazy() {
            const { default: AccountManagement } = await import('../pages/account_management/Index')
            return {
                element: <AccountManagement />
            }
        }
    },
    {
        path: '/account_deletion',
        async lazy() {
            const { default: AccountDeletion } = await import('../pages/account_deletion/Index')
            return {
                element: <AccountDeletion />
            }
        }
    },
    {
        path: '/deletion_confirmation',
        async lazy() {
            const { default: DeletionConfirmation } = await import('../pages/deletion_confirmation/Index')
            return {
                element: <DeletionConfirmation />
            }
        }
    },
    {
        path: '/message_settings',
        async lazy() {
            const { default: MessageSettings } = await import('../pages/message_settings/Index')
            return {
                element: <MessageSettings />
            }
        }
    },
    {
        path: '/doctor_schedule/:id',
        async lazy() {
            const { default: DoctorSchedule } = await import('../pages/doctor_schedule/Index')
            return {
                element: <DoctorSchedule />
            }
        }
    },
    {
        path: '/appointment_confirm/:price',
        async lazy() {
            const { default: AppointmentConfirm } = await import('../pages/appointment_confirm/Index')
            return {
                element: <AppointmentConfirm />
            }
        }
    },
    {
        path: '/registration_detail',
        async lazy() {
            const { default: RegistrationDetail } = await import('../pages/registration_detail/Index')
            return {
                element: <RegistrationDetail />
            }
        }
    },
    {
        path: '/payment_success',
        async lazy() {
            const { default: PaymentSuccess } = await import('../pages/payment_success/Index')
            return {
                element: <PaymentSuccess />
            }
        }
    },
    {
        path: '/face_recognition',
        async lazy() {
            const { default: ProfessionalFaceRecognition } = await import('../pages/face_recognition/ProfessionalFaceRecognition')
            return {
                element: <ProfessionalFaceRecognition />
            }
        }
    },
])
export default routers;